import request from '@/utils/request'

const result = {
  list(params){
    return request.get("/system/results/list", { params })
  },
  treeselect(params) {
    return request.get("/system/results/treeSelect", { params })
  },
  add(data){
    return request.post("/system/results/add", data)
  },
  edit(data){
    return request.post("/system/results/update", data)
  },
  del(id){
    return request.post(`/system/results/delete/${id}`)
  },
  get(id){
    return request.get(`/system/results/detail/${id}`)
  },
}

export default result;
